
import {SET} from "../constant";
const initpreSate=[]
export default function countReducer(preStat=initpreSate,action){
    const {type,data}=action
    console.log(type)
    switch (type){
        case SET:
            return data
        default:
            return preStat
    }
}
